package demo1;

public class Dog extends Animal{
    static {
        System.out.println("static::Dog");
    }

    {
        System.out.println("实例::Dog");
    }

    public Dog(String name,int age){
        super(name,age);
        System.out.println("构造::Dog");
    }

    public void bark(){
        System.out.println("正在汪汪叫");
    }
}
